﻿using NP.BPMReportPlatform.Common.Dtos;
using NP.BPMReportPlatform.CourseTrain.Dtos;
using NP.BPMReportPlatform.Entities.BPM_Business;
using NP.BPMReportPlatform.UserTrial.Dto;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace NP.BPMReportPlatform.Document
{
    /// <summary>
    /// 工程接口服务
    /// </summary>
    public interface IDocumentService : IApplicationService
    {
        /// <summary>
        /// 下载附件
        /// </summary>
        /// <param name="documentId">附件ID</param>
        /// <returns></returns>
        Task<byte[]> DownLoad(string documentId);

        /// <summary>
        /// 下载海外培训培训总结模板
        /// </summary>
        /// <returns></returns>
        public FileStream DownOverSeaSummaryTemplete();

        /// <summary>
        /// 上传文件到BPM系统
        /// </summary>
        /// <param name="bytes">文件byte</param>
        /// <param name="fileName">文件名</param>
        /// <returns></returns>
        Task<(bool Result,string Msg)> Upload(byte[] bytes, string fileName);
    }
}